package pathways.util.helper;

/**
 * Title:        Pathways
 * Description:  Pure Java version of the Pathways Project.
 * Copyright:    Copyright (c) 2002
 * Company:      Ants Technologies
 * @author Veejay Sani
 * @version 1.0
 */

public class CItem
{
  private int ID;
  private String value;
  
  public CItem(int id, String itemValue)
  {
    ID = id;
    value = itemValue;
  }
  
  public int getID()
  {
    return ID; 
  }
  
  public void setID(int id)
  {
    ID = id; 
  }
  
  public String getValue()
  {
    return value; 
  }
  
  public void setValue(String itemValue)
  {
    value = itemValue;
  }
  
  public String toString()
  {
    return value; 
  }
  
  public boolean equals(CItem item)
  {
    if (item == null) return false;
    
    return (value.equals(item.getValue())); 
  }
}